<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2018/6/8
 * Time: 11:47
 */
namespace App\Modules\FormId\Models;
use Illuminate\Database\Eloquent\Model;

class Formid extends Model{

    protected $table = 'form_id';
    protected $fillable = ['form_id','uid','expire_at','status','created_at','updated_at'];

    public static function getFormIdOne($uid) {
        return self::where([
                ['uid','=',$uid],
                ['expire_at','>',time()],
                ['status','=',1]
            ])
            ->first();
    }
}